json.array!(@prescriptions) do |prescription|
  json.extract! prescription, :id, :drug_id, :appointment_id, :stock_logging_id, :dosage, :quantity, :fee, :note, :created_at, :updated_at, :created_by, :updated_by
  json.url prescription_url(prescription, format: :json)
end
